package com.lfy.modules.disk.domain.dto;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
public class ReNameDTO {
    @NotNull
    private Long id;
    @NotBlank(message = "名称不能为空")
    @Length(min = 1, max = 50, message = "名称长度必须在1-20之间")
    private String name;
}
